﻿<?php

use yii\helpers\Html;
use yii\helpers\Url;
use backend\widgets\GridView;
?>
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <?php echo Html::csrfMetaTags(); ?>
    <link href="<?php echo Yii::$app->homeUrl; ?>css/common/base.css" rel="stylesheet">
    <link href="<?php echo Yii::$app->homeUrl; ?>css/common/common.css" rel="stylesheet">
    <link rel="stylesheet" href="<?php echo Yii::$app->homeUrl; ?>css/common/bootstrap.min.css">
    <link href="<?php echo Yii::$app->homeUrl; ?>css/common/daterangepicker-bs3.css" rel="stylesheet">
    <link href="<?php echo Yii::$app->homeUrl; ?>css/PassList.css" rel="stylesheet">
    <link href="<?php echo Yii::$app->homeUrl; ?>css/ThePass.css" rel="stylesheet">
    <!-- The script --> 
    <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/bootstrap.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/extendPagination.js"></script>
    <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/moment.js"></script>
    <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/daterangepicker.js"></script>
    <?php $this->head() ?>
</head>
<?php $this->beginBody() ?>
<p><button type="button" class="back btn btn-success">返回</button></p>
<div class="refer_to">
    <ul class="refer_toLeft">
        <li>
            标题
        </li>
        <?php foreach ($data as $value) : ?>
            <li>
                <a href = "<?php echo Url::to('/novel/view?id='.$id.'&c='.$value['chapter_id']); ?>"><?= $value['chapter_name'] ?></a>
            </li>
        <?php endforeach; ?>
    </ul>
    <ul class="refer_toRight">
        <li>
            文章详情
        </li>
        <li class="refer_center">
            <pre><p><?php echo $content;?></p></pre>
        </li>
    </ul>
</div>
<?php $this->endBody() ?>
<script>
$(function(){
    $(".back").click(function(){
       window.location.href = "/novel/index" 
    });
})    
</script>